import 'babel-polyfill';
import Vue from 'vue';
import Vuex from 'vuex';
import survey from './modules/survey';
import tpl from './modules/tpl';
import common from './modules/common';
import answer from './modules/answer';

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    loginSource: null,
    studentListSource: null,
    teacherListSource: null
  },
  mutations: {
  
    setStudentList(state, val) {
      state.studentListSource = val;
    },
    setTeacherList(state, val) {
      state.teacherListSource = val;
    }
  },
  actions: {
  },
  modules: {
    survey,
    tpl,
    common,
    answer
  }
});
